#!/bin/bash

COUNT=0

#通过for循环读取用户名和密码
for LINES in `adduser.txt`
do
        echo $LINES
        let COUNR+=1
done

echo 
echo "$0 looped $COUNT times"

#通过while循环读取用户名和密码
COUNT=0
while read LINES
do	
		echo $LINES 
		let COUNT+=1
done < addusers.txt`

echo 
echo "$0 looped $COUNT times"